<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
    <span id="site_message"></span>
    <form action="" method="post" enctype="multipart/form-data">
        <label>Title</label><input type="text" name="title" value="<?php if(isset($title)) echo $title; ?>" /><br>
        <label>Text</label><input type="text" name="text" value="<?php if(isset($text)) echo $text; ?>" /><br>
        <img src="<?php if(isset($path)) echo base_url().$path; ?>" alt="<?php if(isset($title))echo $title; ?>">
        <label>Image</label><input type="file" name="image-upload" /><br>
        <input type="submit" name="update-submit" value="Update" />
    </form>
</body>
